// Copyright (C) 2010 Johan Rende.

//    This program is free software: you can redistribute it and/or modify
//    it under the terms of the GNU General Public License as published by
//    the Free Software Foundation, either version 3 of the License, or
//    (at your option) any later version.
//
//    This program is distributed in the hope that it will be useful,
//    but WITHOUT ANY WARRANTY; without even the implied warranty of
//    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
//    GNU General Public License for more details.
//
//    You should have received a copy of the GNU General Public License
//    along with this program.  If not, see <http://www.gnu.org/licenses/>.

//	Official SVN repository and contact information can be found at
//	https://code.google.com/p/lt-engine/

package jwjgl;


import org.lwjgl.LWJGLException;
import org.lwjgl.Sys;
import org.lwjgl.input.Mouse;

public class Mus {

	public void CreateListener() {
		try {
			Mouse.create();
		} catch (LWJGLException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
			Sys.alert("Mus", "musen hittades inte...");
		}
	}

	public int GetMouseX() {
		Mouse.poll();
		return Mouse.getX();
	}

	public int GetMouseY() {
		Mouse.poll();
		return Mouse.getY();
	}

}